
import 'package:flutter/foundation.dart';
import 'package:test_app/app/home/home_state.dart';
import 'package:test_app/core/utils/permission/permission_util.dart';

import '../../core/base/base/base_logic.dart';
import '../../routers/home/home_navigator.dart';

class HomeController extends BaseLogic {

  final HomeState homeState = HomeState();

  //  跳转详情
  void toDetails() {
    HomeNavigator.toHome();
  }

  void openRead() async {
    final res = await PermissionUtil.getStoragePermission();
    debugPrint('Permission request result => $res');
  }

}
